package com.zbkj.crmeb.chant.request;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableName;
import com.common.PageRequest;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 商户满减送主表
 * @author daigb
 * @date:  2023-01-06 16:14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("eb_channel_discount")
@ApiModel(value="ChannelDiscount对象", description="商户满减送主表")
public class ChannelDiscountRequest extends PageRequest implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    private Integer id;

    @ApiModelProperty(value = "商户id")
    private Integer merId;
    
    @ApiModelProperty(value = "1: 满金额减 2: 满数量送")
    private Integer type;

    @ApiModelProperty(value = "活动名")
    private String name;

    @ApiModelProperty(value = "活动开始时间(为空则永久有效)")
    private Date startTime;

    @ApiModelProperty(value = "活动结束时间(为空则永久有效)")
    private Date endTime;

    @ApiModelProperty(value = "1: 阶梯优惠 2: 循环优惠")
    private Integer discountRule;

    @ApiModelProperty(value = "门槛: 当type=1时为金额, 2时为件数")
    private BigDecimal conditionType;

    @ApiModelProperty(value = "1: 金额 2: 折扣")
    private Integer discountType;

    @ApiModelProperty(value = "折扣内容(减金额还是打折)")
    private BigDecimal discount;

    @ApiModelProperty(value = "1: 全部商品 2: 指定商品 3: 指定不参与商品")
    private Integer goodsType;

    @ApiModelProperty(value = "创建人")
    private Integer createUser;
    
    @ApiModelProperty(value = "活动状态: 0: 未开始, 1: 进行中, -1: 已结束")
    private Integer state;
    
    @ApiModelProperty(value = "0: 禁用 1: 启用")
    private Boolean status;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

}
